package com.example.xungeng2.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.xungeng2.mapper.UserinfoMapper;
import com.example.xungeng2.pojo.Userinfo;
import com.example.xungeng2.service.UserinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserinfoServiceImpl extends ServiceImpl<UserinfoMapper, Userinfo> implements UserinfoService {

    @Autowired
    private UserinfoMapper userinfoMapper;
    @Override
    public Page<Userinfo> pagelist(Long page, Long limit) {
        Page<Userinfo> userinfoPage = userinfoMapper.selectPage(new Page<>(page, limit), null);
        return userinfoPage;
    }
}
